package com.xhtech.base.service.login

import com.yxh.lib_base.ext.lazyNone

/**
 * @author yuanxh
 * @date :2023/6/16 22:55
 * @description: 登录管理
 */
class LoginManager : ILoginRouter by mRouter, ILoginService by mService {


    companion object {
        private val mInterface by lazyNone { LoginManager() }
        private var mRouter: ILoginRouter = object : ILoginRouter {}
        private var mService: ILoginService = object : ILoginService {}

        @JvmStatic
        fun getInstances() = mInterface

        fun initLoginRouterImpl(router: ILoginRouter) {
            this.mRouter = router
        }

        fun initLoginServiceImpl(service: ILoginService) {
            this.mService = service
        }

    }
}